# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=mycli
pkgver=1.22.1
pkgrel=0
pkgdesc="MySQL CLI with autocompletion and syntax highlighting"
url="https://www.mycli.net"
arch="noarch"
license="BSD-3-Clause"
depends="python3
	py3-click
	py3-pygments
	py3-prompt_toolkit>2.0.5
	py3-pymysql
	py3-sqlparse<0.4.0
	py3-configobj
	py3-cryptography
	py3-cli_helpers"
makedepends="python3-dev py3-setuptools py3-paramiko"
checkdepends="py3-pytest py3-mock"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/m/mycli/mycli-$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest -v test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="39926dcc39059860779bcd663458d84e1d4e2405437bf60610e2437f508c4d058c3febfcd27bc8b694f8f5b57969a18bb9485cb89c645ea26752a2a3443ab796  mycli-1.22.1.tar.gz"
